From f4058b36784fc2f795995925ccf7040e98ca1c78 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=98yvind=20Kol=C3=A5s?= Date: Tue, 1 May 2012 13:40:28 +0200 Subject: [PATCH] also test >1.0 values when converting from float to u8 --- tests/floatclamp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/floatclamp.c b/tests/floatclamp.c index 953b701..617b440 100644 --- a/tests/floatclamp.c +++ b/tests/floatclamp.c @@ -56,8 +56,8 @@ main (int argc, int OK = 1; babl_init (); { - float in[][4] = {{ 0.21582, -0.55, -0.14, 1.0 }}; - unsigned char out[][4] = {{ 55, 0, 0, 255 }}; + float in[][4] = {{ 0.21582, -0.55, -0.14, 1.0 }, {0.0, 1.0, 2.0, 3.0}}; + unsigned char out[][4] = {{ 55, 0, 0, 255 }, {0,255,255,255}}; CHECK_CONV("float -> u8", unsigned char, babl_format("R'G'B'A float"), -- 2.30.2